package com.neu.mapper;

import com.neu.bean.User;
import org.apache.ibatis.annotations.Param;

/**
 * Created by dllo on 18/3/12.
 */
public interface UserMapper {
    /**
     * 添加用户
     * @param user
     */
    void add(User user);
    /**
     * 判断用户名是否存在
     * @param username
     * @return
     */
    int userExist(String username);

    User findalluser(@Param("username") String name, @Param("password") String password);
}
